package edu.spec.wyn.week05.class2;

public class Animal {
    public String name;
    public String sex;
    public String age;
    public Animal() {

    }
    public Animal(String name,String sex,String age) {
        this.name=name;
        this.sex=sex;
        this.age=age;
    }
    public void eat() {
        System.out.println("我的名字是："+name+"我的性别是："+sex+"我的年龄是"+age);
    }
    public void born() {
        System.out.println("I was born with name");
    }
    public void breed() {
        System.out.println("I breed fast!");
    }
}
